import random
#11面体
"""
x=int(input("多少次？"))
a=[0,0,0,0,0,0,0,0,0,0,0]
for i in range(x):
    b=random.randint(2,12)
    a[b-2]+=1
for i in range(0,11):
    print(f"数字{i+2}出现{a[i]}次，概率{(a[i]/x)*100}%")"""
#yibi
"""
x=int(input("多少次?"))
a=[0,0]
for i in range(x):
    b=random.randint(0,1)
    a[b]+=1
for i in range(0,2):
    print(f"数字{i}出现{a[i]}次，概率{(a[i]/x)*100}%")
"""
"""
x=int(input("多少次?"))
a=[0]
y=0
for i in range(x):
    b=random.randint(0,1)
    if b==0:
        y=0
    if b==1:
        y+=1
    if y==10:
        y=0
        a[0]+=1
print(f"出现{a[0]}次，概率{(a[0]/x)*100}%")"""


a=int(input("分母"))
b=int(input("分子"))
c=int(input("次数"))
e=[]
for i in range(0,a):
    e.append(0)

for i in range(c):
    d=random.randint(0,a-1)
    e[d]+=1
for i in range(0,b):
    print(f"出现{e[i]}次，概率{(e[i]/c)*100}%")